import request from '@/utils/request'

export const getCommentByMusic = (musicId: string) => {
    return request({
        url: '/music/comment/list/music/'+musicId,
        method: 'get',
    })
}

export const getCommentByUser = () => {
    return request({
        url: '/music/comment/list/user',
        method: 'get',
    })
}

export const publishComment = (data: any) => {
    return request({
        url: '/music/comment/publish',
        method: 'post',
        data
    })
}